<%@ page language="java" import="com.demo.util.Conn,java.sql.ResultSet" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
  </head>
  
  <body>
  	<table border="1">
  		<tr>
  			<th>id</th>
  			<th>user</th>
  			<th>password</th>
  		</tr>
	    <%
	    	ResultSet rs = new Conn().find("select * from user");
	    	while(rs != null && rs.next()) {
	    %>
	    	<tr>
	    		<td><%=rs.getString("id") %></td>
	    		<td><%=rs.getString("name") %></td>
	    		<td><%=rs.getString("pwd") %></td>
	    	</tr>
	    <%}%>
    </table>
  </body>
</html>
